import request from "@/config/utils/request";
//结算列表
export function listSettlementPage(data) {
  return request({
    url: "/apis/smp/settlement/listSettlementPage",
    method: "post",
    data
  });
}

//保存结算单
export function saveSettlement(data) {
  return request({
    url: "/apis/smp/settlement/saveSettlement",
    method: "post",
    data
  });
}

// 暂存结算单
export function tsSettlement(data) {
  return request({
    url: "/apis/smp/settlement/tsSettlement",
    method: "post",
    data
  });
}

//查询结算单
export function getSettlementById(data) {
  return request({
    url: "/apis/smp/settlement/getSettlementById",
    method: "post",
    data
  });
}

//提交结算单
export function submitSettlement(data) {
  return request({
    url: "/apis/smp/settlement/submitSettlement",
    method: "post",
    data
  });
}

//查询结算列表
export function listSmpPcConcPage(data) {
  return request({
    url: "/apis/smp/smppcconc/listSmpPcConcForScPage",
    method: "post",
    data
  });
}
//查询合同列表
export function getSmpPcConcMatListById(data) {
  return request({
    url: "/apis/smp/smppcconc/getSmpPcConcMatListById",
    method: "post",
    data
  });
}
//查询合同列表
export function getSmpPcConcById(data) {
  return request({
    url: "/apis/smp/smppcconc/getSmpPcConcById",
    method: "post",
    data
  });
}

//查询验收单详情
export function getAcceptanceCert(data) {
  return request({
    url: "/apis/smp/acceptancecert/getAcceptanceBill",
    method: "post",
    data
  });
}
// /apis/smp/acceptancecert/getAcceptanceBill

//查询验收单详情
export function listAcceptanceCert(data) {
  return request({
    url: "/apis/smp/acceptancecert/listAcceptanceCert",
    method: "post",
    data
  });
}
//删除结算冲销单
export function removeSettlement(data) {
  return request({
    url: "/apis/smp/settlement/removeSettlement",
    method: "post",
    data
  });
}

//删除结算冲销单
export function revokeSettlement(data) {
  return request({
    url: "/apis/smp/settlement/revokeSettlement",
    method: "post",
    data
  });
}

//删除结算冲销单
export function getTaxRateDict(data) {
  return request({
    url: "/apis/smp/basic/getTaxRateDict",
    method: "post",
    data
  });
}

// 退回接口
export function sendBackSupplierSettlement(data) {
  return request({
    url: "/apis/smp/settlement/sendBackSupplierSettlement",
    method: "post",
    data
  });
}

// 结算数量总量接口
// export function selectSettlementCount(data) {
//   return request({
//     url: "/apis/smp/settlement/selectSettlementCount",
//     method: "post",
//     data
//   });
// }

// 物资台账导出
export function accountExport(data) {
  return request({
    url: "/apis/smp/settlement/accountExport",
    method: "post",
    data
  });
}
